package cn.seecoder.courselearning.vo.course.test;

import cn.seecoder.courselearning.po.course.test.CourseQuestionPO;
import lombok.Data;


@Data
public class CourseQuestionVO {
    // 题目编号
    private int questionId;
    // 题干
    private  String question;
    // 题目答案
    private String answer;
    // 题目解析
    private String analysis;
    // 课程id
    private int courseId;
    // 题目类型
    private int questionType;

    public CourseQuestionVO() {
    }


    public CourseQuestionVO(int questionId, String question, String answer, String analysis, int courseId, int questionType) {
        this.questionId = questionId;
        this.question = question;
        this.answer = answer;
        this.analysis = analysis;
        this.courseId = courseId;
        this.questionType = questionType;
    }


    public CourseQuestionVO(CourseQuestionPO courseQuestionPO) {
        this.questionId = courseQuestionPO.getQuestionId();
        this.question = courseQuestionPO.getQuestion();
        this.answer = courseQuestionPO.getAnswer();
        this.analysis = courseQuestionPO.getAnalysis();
        this.courseId = courseQuestionPO.getCourseId();
        this.questionType = courseQuestionPO.getQuestionType();
    }
}
